package com.company;

public class Student {
    private String id;
    private String name;
    private int age;
    private String phone;

    public Student() {

    }

    public Student(String id, String name, int age, String phone) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.phone = phone;
    }

    public void showInfo() {
        System.out.println(
                "学号是：" + this.getId() + "，姓名为：" + this.getName() + "，年龄：" + this.getAge() + "，手机号码：" + this.getPhone());
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

}
